package main

import (
	"fmt"
	//log "gitee.com/tgodfather/misc/logger"
	"hmsDemo/hms.api/config"
	"hmsDemo/hms.api/service"
	"os"
)

func main() {
	fmt.Println(os.Args)

	for _, v := range os.Args {
		if "--version" == v || "-v" == v {
			fmt.Println("Version:", VER_STRING)
			os.Exit(0)
		}
	}

	cfg := config.LoadConfig()
	//log.Init("./log.yaml", cfg.ServiceType)

	service.ApiGateway(cfg, VER_DATE)

}
